#include <iostream>
using namespace std;

class Student{
private:
    char name[20];
    int number;
    float sorce;

public:
Student():
    name("zs")
    ,number(2)
    ,sorce(9.9){
        cout<<"no parameter"<<endl;
    }
Student(string n,int a,float b):
    name("n")
    ,number(a)
    ,sorce(b){
        cout<<"have parameter"<<endl;
    }
Student(const Student &other):
    name("other.name")
    ,number(other.number)
    ,sorce(other.sorce){
        cout<<"copy contructor function"<<endl;
    }
void display(){
    cout<<"name="<<name<<","<<"number="<<number<<","<<"sorce="<<sorce<<endl;
}

};
int main(int argc, char * argv[]){
    Student s1;
    Student s2("zhangsan",2,99);
    Student s3=s2;
    s1.display();
    s2.display();
    s3.display();
    return 0;
}

